package com.satyam.smooth.dao.generic;

public abstract class GenericDAOFactory {

	public static GenericDAOFactory instance(Class factory) {
		try {
			return (GenericDAOFactory) factory.newInstance();
		} catch (Exception ex) {
			throw new RuntimeException("Couldn't create DAOFactory: " + factory);
		}
	}
}
